package cn.com.duiba.millionaire.center.spider.common;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by sunchangji on 2018/6/6.
 */
@ConfigurationProperties(prefix = "duiba.redis")
public class SpiderRedisConfig {

    private String host;

    private String port;

    private String password;

    private RedisPoolConf pool;


    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public RedisPoolConf getPool() {
        return pool;
    }

    public void setPool(RedisPoolConf pool) {
        this.pool = pool;
    }

    public class RedisPoolConf{

        private String minIdle;

        private String maxActive;

        private String maxWait;

        private String maxIdle;

        public String getMinIdle() {
            return minIdle;
        }

        public void setMinIdle(String minIdle) {
            this.minIdle = minIdle;
        }

        public String getMaxActive() {
            return maxActive;
        }

        public void setMaxActive(String maxActive) {
            this.maxActive = maxActive;
        }

        public String getMaxWait() {
            return maxWait;
        }

        public void setMaxWait(String maxWait) {
            this.maxWait = maxWait;
        }

        public String getMaxIdle() {
            return maxIdle;
        }

        public void setMaxIdle(String maxIdle) {
            this.maxIdle = maxIdle;
        }
    }
}
